package server;

import java.net.InetAddress;

//This class is used to create the object of clients who want to monitor server
//It includes ipAddr, port number and monitor interval
public class Callback {
	protected InetAddress ip;
	protected int port;
	private long time;
	
	public Callback(InetAddress ip, int port, long time){
		this.ip = ip;
		this.port = port;
		this.time = time;
	}
	
	public InetAddress getIp(){
		return this.ip;
	}
	public int getPort(){
		return this.port;
	}
	
	public void setIp(InetAddress ip){
		this.ip = ip;
	}
	
	public void setPort(int port){
		this.port = port;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}
}
